<?php
include(APP_PATH.'/Lib/Action/GlobalAction.class.php');

class IndexAction extends GlobalAction {
    public function index(){
        
        $tblNews = M('blog');
        
        $ret = $tblNews->field('title, content')->where("type=1 AND lang='{$this->lang}'")->find();
        
        $this->assign('article', $ret);
        
        $this->assign('currentPage', 'index');
		$this->display();
    }
}